#include <stdio.h>
#include <unistd.h>

int main()
{
    while(1)
    {
        FILE* fp = fopen("log.txt", "w");//不存在就创建
        printf("I am a process\n"); 
        sleep(1);
    }

    return 0;
}
